package cn.tedu.straw.portal.controller;

import cn.tedu.straw.portal.dto.InserDTO;
import cn.tedu.straw.portal.dto.UpdateDTO;
import cn.tedu.straw.portal.service.IListuserService;
import cn.tedu.straw.portal.util.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/portal/question")
@Slf4j
public class QuestController {

    @Autowired
    IListuserService iListuserService;

    //   /portal/question/list/insert
    @RequestMapping("/list/insert")
    public R<Void> listuser(InserDTO InserDTO){
    iListuserService.listinsert(InserDTO);
    return R.ok();
    };

    //   /portal/question/list/update
    @RequestMapping("/list/update")
    public R update(UpdateDTO updateDTO){
        iListuserService.update(updateDTO);
        return R.ok();
    }




}
